package utils
{
    public class ArrayIterator extends Object implements IIterator
    {
        private var _items:Array;
        private var _currentIndex:int;

        public function ArrayIterator(param1:Array)
        {
            _items = param1;
            _currentIndex = 0;
        }
        
        public function get hasNext():Boolean
        {
            return _currentIndex < _items.length;
        }
        public function next():*
        {
            return _items[_currentIndex++];
        }
    }
}
